home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_23103_000011.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.8 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!mcsun!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!network.ucsd.edu!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SYS_Asynch
  5. Message-ID: <37609@cbmvax.commodore.com>
  6. Date: 7 Dec 92 04:37:31 GMT
  7. References: <1992Dec7.030827.27513@newshub.ccs.yorku.ca>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 41
  11.  
  12. wlanders@nexus.yorku.ca (W L Anderson) writes:
  13. >What exactly is the SYS_Asynch tag with supposed to do with SystemTagList?
  14. >I thought it was supposed to run the command specificed asynchronously, but 
  15. >I've been unable to get it to.  The code I'm using is below.
  16.  
  17. >    } else {
  18. >        SystemTags("dir work:downloads > CON:0/0/640/80/Dir/CLOSE/WAIT",
  19. >               SYS_Output, Output,
  20.  
  21. add               SYS_Input, NilFH,
  22. where NilFH is the result of Open("NIL:",MODE_OLDFILE);  Otherwise System()
  23. will cause your Input() filehandle to be closed, if the command is actually
  24. run Async.  Read the autodocs.
  25.  
  26. >               SYS_Asynch, NULL,
  27.                        ^^^^
  28.                        TRUE
  29.  
  30. >               TAG_END, NULL);
  31. >    }
  32. >    SystemTagList("date", TAG_END, NULL);
  33. >    sleep(200);
  34. >    printf("exiting now\n");
  35. >} 
  36. >
  37. >The date gets printed only after the output from the dir command completes.
  38. >Any ideas?
  39.  
  40.     See above.  You set SYS_ASYNCH to false, which is the default.  If
  41. you had set it to true, you probably would crash (see above again).
  42.  
  43.     I assume you're running 37.175.  (People, when asking for help it
  44. never hurts to include version number info...)
  45.  
  46. -- 
  47. To be or not to be = 0xff
  48. -
  49. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  50. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  51. Disclaimer: Nothing I say is anything other than my personal opinion.